package com.ph.irp.base.verifyproject.service;

import java.sql.SQLException;
import java.util.List;

import com.ph.exception.PHException;
import com.ph.irp.model.PBaseVerifyprojectCashrunoff;

/**
 * The Interface PBaseVerifyprojectCashService.
 * 
 * @author SongYandong song.yandong@phinfoservices.com
 * @version 1.0 <br>
 * Copyright (C), 2009, SongYandong <br>
 * This program is protected by copyright laws. <br>
 * Program Name: PBaseVerifyprojectCashService.java<br>
 * Date:2009-11-12
 */
public interface PBaseVerifyprojectCashService {

	/**
	 * Adds the cash.
	 * 
	 * @param model the model
	 * 
	 * @return the int
	 * 
	 * @throws SQLException the SQL exception
	 */
	public void addCash(PBaseVerifyprojectCashrunoff model)throws Throwable;
	
	/**
	 * Update cash.
	 * 
	 * @param model the model
	 * 
	 * @return the int
	 * 
	 * @throws SQLException the SQL exception
	 */
	public void updateCash(PBaseVerifyprojectCashrunoff model)throws Throwable;
	
	/**
	 * Gets the all cash.
	 * 
	 * @param model the model
	 * 
	 * @return the all cash
	 * 
	 * @throws SQLException the SQL exception
	 */
	public List<PBaseVerifyprojectCashrunoff> getAllCash() throws Throwable;
	
	/**
	 * Gets the cash by id.
	 * 
	 * @param model the model
	 * 
	 * @return the cash by id
	 * 
	 * @throws SQLException the SQL exception
	 */
	public PBaseVerifyprojectCashrunoff getCashById(int id)throws Throwable;
	
	
	
	public  List<PBaseVerifyprojectCashrunoff> getCashByCodeAndName(PBaseVerifyprojectCashrunoff model) throws Throwable;
	/**
	 * Delete cash.
	 * 
	 * @param id the id
	 * 
	 * @return the int
	 * 
	 * @throws SQLException the SQL exception
	 */
	public int deleteCash(Object[] id)throws Throwable;
	
	
}
